#!/bin/bash
# dzen2 pop
# 2007, by Robert Manea
#

TODAY=$(expr `date +'%d'` + 0)
MONTH=`date +'%m'`
YEAR=`date +'%Y'`
LINES=$(cal -m | wc -l)
LINES=$((LINES + 2))

(
#date +'%A, %d %b %Y %H:%M'
date +'^bg(#130F1C) '
date +''
# current month, highlight header and today
cal -m | sed -r -e "1,2 s/.*/^fg(#3676e8)&^fg()/"  -e "s/(^| )($TODAY)($| )/\1^bg(#a9c4f5)^fg(#2f343f)\2^fg()^bg()\3/") | dzen2 -fn "Input Mono Condensed:pixelsize=10" -x 1751 -y 850 -w 190 -h 17 -l $LINES -sa c -p -e 'onstart=uncollapse,hide;button3=exit;' -fg "#2f343f" -bg "#e7e8eb" -tw 6
